# -*- coding: utf-8 -*-
# @File     : handle_rand_str.py
# @Project  : letCodeCase
# @Author   : 熊剑文
# @Time     : 2024/9/5 10:56:23
# @Copyright: 江西博微新技术有限公司
pass

"""
模块描述：
    
"""
from random import sample
from string import ascii_letters,digits

def get_rand_str(length):
    # print(sample(ascii_letters+digits,k=length))  #['h', '0', 'G']
    return ''.join(sample(ascii_letters+digits,k=length))

if __name__ == '__main__':
    print(get_rand_str(3))